﻿
namespace Candy.ViewModel
{
    public class EntityViewModelBase<T> : CandyViewModelBase
    {
        private T _entity;
        public T Entity
        {
            get
            {
                return _entity;
            }
            set
            {
                _entity = value;
                RaisePropertyChanged("Entity");
            }
        }


        public EntityViewModelBase()
        {

        }

        public EntityViewModelBase(T entity)
        {
            _entity = entity;
        }

    }
}
